package com.jack.xiaoer.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jack.xiaoer.entity.Cart;
import com.jack.xiaoer.entity.Shop;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Jackaroo Zhang on 2018/12/14.
 */
@Repository
public interface CartMapper extends BaseMapper<Cart> {

    int countItem(@Param("userId") Long userId, @Param("shopId") Long shopId, @Param("checked") Integer checked);

    List<Shop> listShopByUserId(Long userId);

}
